package com.hdax.dm.mapstucts;

import com.hdax.dm.beans.item.ItemType;
import com.hdax.dm.dto.IndexlineNavDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper(componentModel = "spring")
public abstract class IndexlineNavDtoMapper {

    @Mapping(source = "itemType", target = "itemName")
    public abstract IndexlineNavDto toTarget(ItemType source);

    public abstract List<IndexlineNavDto> toTargetList(List<ItemType> sources);

}
